<%@page language="java" contentType="text/html;charset=UTF-8"%>
<%@include file="/WEB-INF/core/common/top.jsp" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<link type="text/css" rel="stylesheet" href="${ctx}/core/styles/validatorAuto.css" />

<script language="javascript">
	function doCancel(){
		location='${ctx}/system/rescSearch.action?act=reQuery';
	}
</script>

<body style="overflow-x:hidden;overflow-y:auto;" >
<s:if test="pageState=='edit'">
	<s:iterator value="pageInfo.searchResult" id="it" status="st">
	</s:iterator>
</s:if>
<form method="post" action="${ctx}/system/rescOpt.action" id="rescform">
 	<s:if test="pageState=='add'">  
 		<s:hidden name="act" value="addSubmit"></s:hidden>
	</s:if>
	<s:if test="pageState=='edit'">
		<s:hidden name="act" value="editSubmit"></s:hidden>
		<s:hidden name="resc.id" value="%{resc.id}" />
	</s:if>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr width="100%">
	<td>
		<table border="0" align="center" cellpadding="0" cellspacing="0">
			<tr width="100%">
				<td width="8" height="27" align="left"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td> 
  				<td width="99%"  align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:if test="pageState=='edit'"><s:text name="parmData.modify"/><s:text name="resc.record" /></s:if><s:if test="pageState=='add'"><s:text name="parmData.add"/><s:text name="resc.record" /></s:if></td>
  				<td width="8" align="right"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
  			</tr>
  		</table>
  	</td>
  </tr>
  <tr>
    <td colspan="4" class="biaoge">
         <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
                 <tr align="left">
                      <td width="12%" bgcolor="#DDE4EA" >&nbsp;<s:text name="resc.name"  />&nbsp;</td>
                      <td width="38%" bgcolor="#DDE4EA" >
                      			<exts:textfield name="resc.name" id="rescName" value="%{resc.name}" class="textbox_css" style="width:150px" required="true"/>
					  </td>

					  <td width="12%" bgcolor="#DDE4EA" >&nbsp;<s:text name="resc.url"  />&nbsp;</td>
                      <td width="38%" bgcolor="#DDE4EA" >
                      			<exts:textfield name="resc.resString" id="url" value="%{resc.resString}" class="textbox_css" style="width:250px"/>
					  </td>
                 </tr>
                 <tr align="left">
                      <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="resc.menuSort"/>&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" >
                      		<exts:textfield name="resc.menuSort" value="%{resc.menuSort}" class="textbox_css" style="width:150px"/>
					  </td>

					  <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="resc.status"/>&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" >
                      		<exts:select list="#{'valid': '有效', 'invalid': '无效'}" name="resc.status" value="%{resc.status}"></exts:select>
					  </td>
                 </tr>
                 <tr align="left">
                      <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="resc.menu" />&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" >
                      	<s:if test="pageState=='add'">
                      	  <exts:radio list="#{1: '是', 0: '否'}" name="resc.menuJust" value="1"></exts:radio>
                      	</s:if>
                      	<s:if test="pageState=='edit'">
                      	  <exts:radio list="#{1: '是', 0: '否'}" name="resc.menuJust" value="%{resc.menuJust}"></exts:radio>
                      	</s:if>
                      </td>    
                      <td width="6%" bgcolor="#DDE4EA" >&nbsp;&nbsp;</td>
                      <td width="19%" bgcolor="#DDE4EA" >
                      </td>     
                 </tr>
                 <tr>
                      <td height="10" colspan="6" background="../core/images/line5.gif">&nbsp;</td>
                 </tr>
                 <tr>
                      <td height="25" colspan="6" align="center">
							<input name="button22" type="submit" class="btn" value=" <s:text name='parmData.save'/> "/>
			                <input type="button" name="Button11" value=" <s:text name='parmData.return' /> " class="btn" onClick="doCancel();" />
			           </td>
                 </tr>
             </table>
            </td>
          </tr>
    </table>
   </form>
</body>
